package com.ruoyi.recyclecomprehensive.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.recyclecomprehensive.domain.Gift;
import com.ruoyi.recyclecomprehensive.mapper.GiftMapper;
import com.ruoyi.recyclecomprehensive.service.GiftService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class GiftServiceImpl extends ServiceImpl<GiftMapper, Gift> implements GiftService {
    @Override
    public BigDecimal sum(Long merchantId) {
        return getBaseMapper().sum(merchantId);
    }

    @Override
    public Integer countStock(Long merchantId) {
        return getBaseMapper().countStock(merchantId);
    }
}
